import service from "@/utils/request";

const informationRuleApi = {
  // ----------------资讯-----------------
  tagInfoList: function(data) {
    //资讯分类
    return service.get("tagInfo/listIdName",{params:data});
  },
  libraryPage:function(data){
    //列表查询
    return service.get("library/page",{params:data});
  },
  libraryInfo:function(data){
    //资讯详情
    return service.get('library',{params:data})
  },
  libraryCrate:function(data){
    //新增资讯
    return service.post("library",data);
  },
  libraryEdit:function(data){
    //编辑资讯
    return service.put("library",data);
  },
  libraryDelete:function(data){
    return service.put('library/delete',data)
 }
};

export default informationRuleApi;